package com.peas.platform.module.icims.budget.adjust.adapter.repository.po;

import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 年中新预算明细
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_budget_new_item`")
public class BudgetNewItemPo extends BasePo {

    // 年中新预算表ID
    // 外键
    @Comment(value = "年中新预算表ID")
    @TableField(value = "`budget_new_id`", jdbcType = JdbcType.BIGINT)
    private Long budgetNewId;

    // 年度
    @Comment(value = "年度")
    @Size(max = 4, message = "年度不能超过4个字符")
    @TableField(value = "`year`", jdbcType = JdbcType.VARCHAR)
    private String year;

    // 明细项目类别
    // 下拉框选择
    @Comment(value = "明细项目类别")
    @TableField(value = "`item_type`", jdbcType = JdbcType.BIGINT)
    private Long itemType;

    // 开支范围
    // 下拉框选择
    @Comment(value = "开支范围")
    @TableField(value = "`item_range`", jdbcType = JdbcType.BIGINT)
    private Long itemRange;

    // 开支内容
    @Comment(value = "开支内容")
    @Size(max = 100, message = "开支内容不能超过100个字符")
    @TableField(value = "`item_name`", jdbcType = JdbcType.VARCHAR)
    private String itemName;

    // 明细功能分类
    @Comment(value = "明细功能分类")
    @Size(max = 20, message = "明细功能分类不能超过20个字符")
    @TableField(value = "`item_function_type`", jdbcType = JdbcType.VARCHAR)
    private String itemFunctionType;

    // 明细经济分类
    @Comment(value = "明细经济分类")
    @Size(max = 20, message = "明细经济分类不能超过20个字符")
    @TableField(value = "`item_economy_type`", jdbcType = JdbcType.VARCHAR)
    private String itemEconomyType;

    // 计量单位
    @Comment(value = "计量单位")
    @Size(max = 20, message = "计量单位不能超过20个字符")
    @TableField(value = "`unit`", jdbcType = JdbcType.VARCHAR)
    private String unit;

    // 单价/支出标准
    @Comment(value = "单价/支出标准")
    @TableField(value = "`price`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal price;

    // 工作量
    @Comment(value = "工作量")
    @TableField(value = "`num`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal num;

    // 测算依据及说明
    @Comment(value = "测算依据及说明")
    @Size(max = 200, message = "测算依据及说明不能超过200个字符")
    @TableField(value = "`reason`", jdbcType = JdbcType.VARCHAR)
    private String reason;

    // 备注
    @Comment(value = "备注")
    @TableField(value = "`remark`", jdbcType = JdbcType.CLOB)
    private String remark;

}
